.form-group {
    margin-bottom: 15px;
}
 
.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
 
.form-input,
.form-textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
 
.form-textarea {
    resize: vertical;
    min-height: 100px;
}
 
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
/* 添加弹窗的样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* 确保弹窗位于其他内容之上 */
}
 
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
}
 

.note-body {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
//   border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  width: 90%;
}

 
/* 表单内的div容器样式 */
.note-body div {
  margin-bottom: 15px;
}
 
/* 标签样式 */
.note-body label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}
 
/* 输入框和文本区域样式 */
.note-body input,
.note-body textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  color: #333;
  box-sizing: border-box; /* 确保填充和边框不会增加元素的总宽度 */
}
 
/* 输入框和文本区域在获得焦点时的样式 */
.note-body input:focus,
.note-body textarea:focus {
  border-color: #2ecc71; /* 使用与按钮相同的绿色 */
  outline: none; /* 移除默认的焦点轮廓 */
}
 
.notebook {
  max-width: 800px;
}

.note-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.note-item {
  border: 1px solid #e0e0e0;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fafafa;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.note-item:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.note-content {
  flex-direction: column;
}

.note-content h2 {
  margin-top: 0;
  font-size: 1.5em;
  color: #2c3e50;
}

.note-content p {
  margin: 15px 0;
  color: #555;
  line-height: 1.6;
}

.note-content span {
  font-size: 0.9em;
  color: #7f8c8d;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.pagination button {
  margin: 0 10px;
  padding: 8px 16px; /* 减小内边距以缩小按钮 */
  font-size: 0.875em; /* 减小字体大小，保持与.note-content button一致 */
  border: none;
  border-radius: 6px;
  background-color: #2ecc71;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination button:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

.pagination button:not(:disabled):hover {
  background-color: #27ae60;
}

.edit-note {
  margin-top: 40px;
  padding: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  top: 20%;
  position: absolute;
  width: 80%; 
}
 
.close-icon {
  position: absolute;
  top: 16px; /* 根据需要调整 */
  right: 32px; /* 根据需要调整 */
  font-size: 32px; /* 根据需要调整字体大小 */
  cursor: pointer; /* 鼠标悬停时显示为可点击的手型 */
  color: #aaa; /* 根据需要设置颜色 */
}
 
.close-icon:hover {
  color: #000; /* 鼠标悬停时改变颜色 */
}
.edit-note h2 {
  font-size: 1.5em;
  color: #2c3e50;
  margin-top: 0;
}

.edit-note form {
  display: flex;
  flex-direction: column;
}

.edit-note label {
  font-size: 1em;
  color: #555;
  margin-bottom: 10px;
}

.edit-note input,
.edit-note textarea {
  display: block;
  clear: both;
  width: 90%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1em;
  color: #333;
  line-height: 1.5;
}

.edit-note textarea {
  height: 150px;
}

textarea {
  width: 100%;
  height: 120px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  font-size: 1em;
  color: #333;
  line-height: 1.5;
}

/* ...（可根据需要添加样式） */
.note-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
